package first_practice;

/**
 * @author ZhiWen Ren
 * @version 1.0
 * @description: 树的类
 * @date 2025/4/1 16:48
 */

//Definition for a binary tree node.
public class TreeNode {
    int val;
    TreeNode left;
    TreeNode right;

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}

